﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AnimalApplication.Models;
using ConsoleApplication1.Models;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            var program = new Program();

            program.Method1(12.1);
            program.Method1("12.1");
            program.Method1((object)12);

            var value = 11;

            if (Math.Abs(value - 1.1) > 0.001)
            {
                Console.Write("Not equal");
            }


            ///var Elephant = new Mammals();

            var Bemby = new IndianElephant();
            Bemby.Temperature = "hight";
            Bemby.HaveJellyBag = true;
            Bemby.HaveWool = true;


            var Bemby2 = new IndianElephant()
            {
                Temperature = "hight",
                HaveJellyBag = true,
                HaveWool = true
            };

            int[] collection = new int[] { 1, 2, 4, 5 };

            //double elephantWeight = Bemby.MaxWeigh;

            //var mamont = new rModels.Mammoth()
            //{
            //    HaveJellyBag = true,
            //    HaveTrunk = false
            //};

        }

        public void Method1(object age)
        {
            getAge();
        }
        public void Method1(double age)
        {

        }
        public void Method1(int age)
        {

        }
        
        private double getAge() { return default(double); }

        public double GetAgeByUserId(int userId) { return default(double); }

        private double method2() { return default(double); }
        //public double Method2() { throw new Exception(); }
    }
}
                                                                                      